package com.xcity.pomelo.push.msg;

import com.xcity.db.entity.Mine;
import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.AbstractMessagePush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_MESSAGE)
public class MineChangePush extends AbstractMessagePush{
	private String name;
	private String icon;
	private long ownerId;
	private int map;
	private int pos;
	public MineChangePush(Mine mine) {
		super(MSG_MINE_CHANGE);
		this.name = mine.getOwnerName();
		this.icon = mine.getOwnerIcon();
		this.ownerId = mine.getOwnerId();
		this.map = mine.getMap();
		this.pos = mine.getPos();
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public long getOwnerId() {
		return ownerId;
	}
	public void setOwnerId(long ownerId) {
		this.ownerId = ownerId;
	}
	public int getMap() {
		return map;
	}
	public void setMap(int map) {
		this.map = map;
	}
	public int getPos() {
		return pos;
	}
	public void setPos(int pos) {
		this.pos = pos;
	}
}
